package o;

import android.view.View;
import com.huawei.support.widget.HwSubTabWidget;
import java.lang.ref.WeakReference;

public class fmp extends SkinAttr {

    static final class a extends fkz<SkinAttr, Integer> {
        private WeakReference<HwSubTabWidget> ˋ;

        public /* synthetic */ void ॱ(Object obj) {
            ˎ((Integer) obj);
        }

        private a(HwSubTabWidget hwSubTabWidget) {
            this.ˋ = new WeakReference(hwSubTabWidget);
        }

        public void ˎ(Integer num) {
            HwSubTabWidget hwSubTabWidget = (HwSubTabWidget) this.ˋ.get();
            if (hwSubTabWidget != null) {
                flc.ˊ(hwSubTabWidget, num.intValue());
            }
        }
    }

    public fmp() {
        this.ˎ = 0;
    }

    public void ˎ(View view, boolean z) {
        if (view instanceof HwSubTabWidget) {
            HwSubTabWidget hwSubTabWidget = (HwSubTabWidget) view;
            if ("color".equals(this.attrValueTypeName)) {
                this.ʽ = "color";
                fks.ˎ(view.getContext(), this, new a(hwSubTabWidget)).ॱ(z);
            }
        }
    }
}
